package com.dumengwei.senior1.week2.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dumengwei.senior1.week2.entity.Dantou;
import com.dumengwei.senior1.week2.mapper.DantouMapper;
import com.dumengwei.senior1.week2.service.DantouService;
@Service
public class DantouServiceImpl implements DantouService {
		@Autowired
		private DantouMapper dantouMapper;

		@Override
		public List<Dantou> list(Dantou dantou) {
			return dantouMapper.list(dantou);
		}
		@Override
		public int delete(Integer contractNo) {
		return dantouMapper.delete(contractNo);
		}
		@Override
		public Dantou finfById(Integer contractNo) {
		return dantouMapper.findById(contractNo);
		}
		
		@Override
		public int update(Integer contractNo) {
		return dantouMapper.update(contractNo);
		}
		
		@Override
		public int add(Dantou dantou) {
		// TODO Auto-generated method stub
		return dantouMapper.add(dantou);
		}
}
